/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define EIN1_Pin GPIO_PIN_3
#define EIN1_GPIO_Port GPIOE
#define EIN2_Pin GPIO_PIN_4
#define EIN2_GPIO_Port GPIOE
#define FIN1_Pin GPIO_PIN_5
#define FIN1_GPIO_Port GPIOE
#define FIN2_Pin GPIO_PIN_6
#define FIN2_GPIO_Port GPIOE
#define ADC1_channel10_Pin GPIO_PIN_0
#define ADC1_channel10_GPIO_Port GPIOC
#define ADC2_channel11_Pin GPIO_PIN_1
#define ADC2_channel11_GPIO_Port GPIOC
#define ADC2_channel12_Pin GPIO_PIN_2
#define ADC2_channel12_GPIO_Port GPIOC
#define ADC2_channel13_Pin GPIO_PIN_3
#define ADC2_channel13_GPIO_Port GPIOC
#define SERVO_PWM1_Pin GPIO_PIN_0
#define SERVO_PWM1_GPIO_Port GPIOA
#define SERVO_PWM2_Pin GPIO_PIN_1
#define SERVO_PWM2_GPIO_Port GPIOA
#define TX2_CH511N_RX_Pin GPIO_PIN_2
#define TX2_CH511N_RX_GPIO_Port GPIOA
#define RX2_CH511N_TX_Pin GPIO_PIN_3
#define RX2_CH511N_TX_GPIO_Port GPIOA
#define test_led_Pin GPIO_PIN_4
#define test_led_GPIO_Port GPIOA
#define DS18B20_DO_Pin GPIO_PIN_5
#define DS18B20_DO_GPIO_Port GPIOA
#define ADC1_channel6_Pin GPIO_PIN_6
#define ADC1_channel6_GPIO_Port GPIOA
#define ADC2_channel7_Pin GPIO_PIN_7
#define ADC2_channel7_GPIO_Port GPIOA
#define ADC_ChannelGNDA_Pin GPIO_PIN_4
#define ADC_ChannelGNDA_GPIO_Port GPIOC
#define ADC1_channel8_Pin GPIO_PIN_0
#define ADC1_channel8_GPIO_Port GPIOB
#define ADC2_channel9_Pin GPIO_PIN_1
#define ADC2_channel9_GPIO_Port GPIOB
#define MOTOR_PWM1_Pin GPIO_PIN_9
#define MOTOR_PWM1_GPIO_Port GPIOE
#define MOTOR_PWM2_Pin GPIO_PIN_11
#define MOTOR_PWM2_GPIO_Port GPIOE
#define MOTOR_PWM3_Pin GPIO_PIN_13
#define MOTOR_PWM3_GPIO_Port GPIOE
#define MOTOR_PWM4_Pin GPIO_PIN_14
#define MOTOR_PWM4_GPIO_Port GPIOE
#define TX3_BT24_RX_Pin GPIO_PIN_10
#define TX3_BT24_RX_GPIO_Port GPIOB
#define RX3_BT24_TX_Pin GPIO_PIN_11
#define RX3_BT24_TX_GPIO_Port GPIOB
#define SPI2_IRQ_Pin GPIO_PIN_12
#define SPI2_IRQ_GPIO_Port GPIOB
#define CIN1_Pin GPIO_PIN_8
#define CIN1_GPIO_Port GPIOD
#define CIN2_Pin GPIO_PIN_9
#define CIN2_GPIO_Port GPIOD
#define DIN1_Pin GPIO_PIN_10
#define DIN1_GPIO_Port GPIOD
#define DIN2_Pin GPIO_PIN_11
#define DIN2_GPIO_Port GPIOD
#define MOTOR_PWM5_Pin GPIO_PIN_6
#define MOTOR_PWM5_GPIO_Port GPIOC
#define MOTOR_PWM7_Pin GPIO_PIN_7
#define MOTOR_PWM7_GPIO_Port GPIOC
#define MOTOR_PWM6_Pin GPIO_PIN_8
#define MOTOR_PWM6_GPIO_Port GPIOC
#define MOTOR_PWM8_Pin GPIO_PIN_9
#define MOTOR_PWM8_GPIO_Port GPIOC
#define TX1_Bearpi_RX_Pin GPIO_PIN_9
#define TX1_Bearpi_RX_GPIO_Port GPIOA
#define RX1_Bearpi_TX_Pin GPIO_PIN_10
#define RX1_Bearpi_TX_GPIO_Port GPIOA
#define AIN1_Pin GPIO_PIN_1
#define AIN1_GPIO_Port GPIOD
#define AIN2_Pin GPIO_PIN_2
#define AIN2_GPIO_Port GPIOD
#define BIN1_Pin GPIO_PIN_3
#define BIN1_GPIO_Port GPIOD
#define BIN2_Pin GPIO_PIN_4
#define BIN2_GPIO_Port GPIOD
#define SPI2_CSN_Pin GPIO_PIN_6
#define SPI2_CSN_GPIO_Port GPIOD
#define SPI2_CE_Pin GPIO_PIN_7
#define SPI2_CE_GPIO_Port GPIOD
#define INT_Pin GPIO_PIN_5
#define INT_GPIO_Port GPIOB
#define TRIG_Pin GPIO_PIN_0
#define TRIG_GPIO_Port GPIOE
#define ECHO_Pin GPIO_PIN_1
#define ECHO_GPIO_Port GPIOE

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
